#include<windows.h>
#include<gl/Gl.h>
#include<gl/glut.h>
#include<iostream>
#include<cmath>
#include <math.h>

class TTable
{
	float x,y,z;//for positioning
	float width,height,depth;//size of cube
	float xRot,yRot;//rotations
	bool wireFrame;//bool to check to display wireframe or solid
	void RenderLegs();
public:
	TTable(): x(0.0f), y(0.0f), z(0.0f),width(50.0f),height(10.0f),depth(50.0f),xRot(0.0f),yRot(0.0),wireFrame(false) {}
	TTable(float xp, float yp, float zp,float xwidth=50.0f,float yheight=10.0f, float zdepth=50.0f, float xrot=0.0f,float yrot=0.0f)
	{x = xp; y = yp; z=zp; width=xwidth; height=yheight; depth=zdepth; xRot=xrot, yRot=yrot, wireFrame=false;}

	void Rotate(float,float);
	void Position(float,float,float);
	void Render();
	void SolidWire(bool);
	

};